/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class SmartCircuitBreaker {
    static categoryCode = '010020014';

    static categoryName = '智能断路器';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return SmartCircuitBreaker.categoryCode;
    }

    get categoryName() {
        return SmartCircuitBreaker.categoryName;
    }

    getCurrent(params) {
        return command({
            method: 'getCurrent',
            methodId: 'URPrGNVq',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getFaultStatus(params) {
        return command({
            method: 'getFaultStatus',
            methodId: 'UaMC6yf3',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getFaultType(params) {
        return command({
            method: 'getFaultType',
            methodId: 'UODe0ipG',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getLeakageCurrent(params) {
        return command({
            method: 'getLeakageCurrent',
            methodId: 'pdN73u55',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getLeakageCurrentThreshold(params) {
        return command({
            method: 'getLeakageCurrentThreshold',
            methodId: 'pqYhVUwZ',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getOvercurrentThreshold(params) {
        return command({
            method: 'getOvercurrentThreshold',
            methodId: 'pWG0ZCML',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getOverheatingThreshold(params) {
        return command({
            method: 'getOverheatingThreshold',
            methodId: 'ptRSbsAl',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getOvervoltageThreshold(params) {
        return command({
            method: 'getOvervoltageThreshold',
            methodId: 'pj7xkPxr',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getPower(params) {
        return command({
            method: 'getPower',
            methodId: 'UvxDsHgx',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getPowerOnState(params) {
        return command({
            method: 'getPowerOnState',
            methodId: 'p3deL4Em',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRatedCurrent(params) {
        return command({
            method: 'getRatedCurrent',
            methodId: 'pBTQg5QC',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRatedPower(params) {
        return command({
            method: 'getRatedPower',
            methodId: 'pz93pgyw',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRatedVoltage(params) {
        return command({
            method: 'getRatedVoltage',
            methodId: 'p0crQeXU',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getShortCircuitCurrentThreshold(params) {
        return command({
            method: 'getShortCircuitCurrentThreshold',
            methodId: 'UnfcAAWS',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pkp1X0JP',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTemperature(params) {
        return command({
            method: 'getTemperature',
            methodId: 'UmaShjvV',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getUndercurrentThreshold(params) {
        return command({
            method: 'getUndercurrentThreshold',
            methodId: 'pNnZxwZd',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getUndervoltageThreshold(params) {
        return command({
            method: 'getUndervoltageThreshold',
            methodId: 'pXZuumuA',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getVoltage(params) {
        return command({
            method: 'getVoltage',
            methodId: 'U8O3cvYb',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setLeakageCurrentThreshold(params) {
        return command({
            method: 'setLeakageCurrentThreshold',
            methodId: 'pDrhEqgn',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setOvercurrentThreshold(params) {
        return command({
            method: 'setOvercurrentThreshold',
            methodId: 'pghzWkkM',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setOverheatingThreshold(params) {
        return command({
            method: 'setOverheatingThreshold',
            methodId: 'peHyqOwR',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setOvervoltageThreshold(params) {
        return command({
            method: 'setOvervoltageThreshold',
            methodId: 'pGox7xfE',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setPowerOnState(params) {
        return command({
            method: 'setPowerOnState',
            methodId: 'ppAXij0W',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setShortCircuitCurrentThreshold(params) {
        return command({
            method: 'setShortCircuitCurrentThreshold',
            methodId: 'phEq11VK',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'pUPQOycz',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setUndercurrentThreshold(params) {
        return command({
            method: 'setUndercurrentThreshold',
            methodId: 'p1vFBbp9',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setUndervoltageThreshold(params) {
        return command({
            method: 'setUndervoltageThreshold',
            methodId: 'pZgRtGvI',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default SmartCircuitBreaker;
